package cn.edu.hpu.jie.entity;

/**
 * 投票规则
 * @author Jie
 *
 */
public class Rule {
	private int id;
	private String begintime;
	private String endtime;
	private int mincheck;
	private int maxcheck;
	
	private static Rule rule;
	
	private Rule() {}
	
	public static Rule getRule() {
		if(rule == null) {
			rule = new Rule();
		}
		return rule;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getBegintime() {
		return begintime;
	}
	public void setBegintime(String begintime) {
		this.begintime = begintime;
	}
	public String getEndtime() {
		return endtime;
	}
	public void setEndtime(String endtime) {
		this.endtime = endtime;
	}
	public int getMincheck() {
		return mincheck;
	}
	public void setMincheck(int mincheck) {
		this.mincheck = mincheck;
	}
	public int getMaxcheck() {
		return maxcheck;
	}
	public void setMaxcheck(int maxcheck) {
		this.maxcheck = maxcheck;
	}
}
